﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include"qdialogcan.h"
#include"qformfunction.h"

//#pragma  comment(lib,"ControlCAN.lib")
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
public:
    void  addPageToTab(int index,QString name, int bps);
private:
    void  paintEvent(QPaintEvent *event);
public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_actCAN_Open_triggered();

    void on_tabWidget_tabCloseRequested(int index);

    void on_actCAN_Close_All_triggered();

    void on_tabWidget_customContextMenuRequested(const QPoint &pos);

private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
